/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Exo 2', sans-serif;
}

body {
    background-color: #0a0a16;
    color: #00f3ff;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

/* 科幻背景效果 */
.cyber-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #0a0a16 0%, #0d1b2a 50%, #1a1a2e 100%);
    overflow: hidden;
}

.scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, transparent, #00f3ff, transparent);
    opacity: 0.3;
    animation: scanline 8s linear infinite;
    z-index: 0;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 243, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
}

@keyframes scanline {
    0% { top: 0%; }
    100% { top: 100%; }
}

/* 主容器 */
.container {
    display: flex;
    height: 100vh;
    padding: 20px;
    gap: 20px;
    z-index: 1;
    position: relative;
}

/* 播放器容器 */
.player-container {
    flex: 3;
    display: flex;
    flex-direction: column;
    background: rgba(10, 15, 35, 0.85);
    border: 1px solid #00f3ff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.3);
    backdrop-filter: blur(5px);
}

.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(0, 20, 40, 0.9);
    border-bottom: 1px solid #00f3ff;
}

.cyber-text {
    display: flex;
    flex-direction: column;
}

.cyberpunk-glitch {
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    font-weight: 900;
    color: #00f3ff;
    text-shadow: 0 0 10px #00f3ff, 0 0 20px #00f3ff;
    letter-spacing: 2px;
    animation: glitch 5s infinite;
}

.cyber-subtitle {
    font-size: 12px;
    color: #8be9fd;
    letter-spacing: 1px;
    margin-top: 2px;
}

@keyframes glitch {
    0%, 100% { transform: translate(0); }
    1% { transform: translate(-1px, 1px); }
    2% { transform: translate(-1px, -1px); }
    3% { transform: translate(1px, 1px); }
    4% { transform: translate(1px, -1px); }
    5% { transform: translate(0); }
}

.system-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ff375f;
    box-shadow: 0 0 10px #ff375f;
}

.status-indicator.active {
    background-color: #00ff9d;
    box-shadow: 0 0 10px #00ff9d;
    animation: pulse 2s infinite;
}

.status-text {
    font-size: 14px;
    font-weight: 600;
    color: #00ff9d;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* 视频区域 */
.video-wrapper {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.video-player {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hud-element {
    position: absolute;
    padding: 10px;
}

.hud-element.top-left {
    top: 10px;
    left: 10px;
}

.hud-element.top-right {
    top: 10px;
    right: 10px;
    text-align: right;
}

.hud-element.bottom-left {
    bottom: 10px;
    left: 10px;
}

.hud-element.bottom-right {
    bottom: 10px;
    right: 10px;
    text-align: right;
}

.hud-line {
    height: 2px;
    background: linear-gradient(90deg, #00f3ff, transparent);
    margin-bottom: 5px;
}

.hud-element.top-right .hud-line {
    background: linear-gradient(90deg, transparent, #00f3ff);
}

.hud-text {
    font-size: 12px;
    color: #00f3ff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.data-readout {
    font-size: 11px;
    color: #8be9fd;
}

.data-label {
    color: #00f3ff;
    margin-right: 5px;
}

/* 播放器控制 */
.player-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(0, 20, 40, 0.9);
    border-top: 1px solid #00f3ff;
    gap: 15px;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.center-controls {
    flex: 1;
}

/* 按钮样式 */
.cyber-button {
    background: rgba(0, 40, 80, 0.8);
    border: 1px solid #00f3ff;
    color: #00f3ff;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cyber-button:hover {
    background: rgba(0, 100, 200, 0.8);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.7);
    transform: translateY(-2px);
}

.cyber-button:active {
    transform: translateY(0);
}

.cyber-button.small {
    padding: 8px 12px;
    font-size: 14px;
}

.cyber-button.large {
    padding: 12px 20px;
    font-size: 16px;
}

/* 滑块样式 */
.cyber-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(0, 40, 80, 0.8);
    border-radius: 3px;
    outline: none;
}

.cyber-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #00f3ff;
    cursor: pointer;
    box-shadow: 0 0 10px #00f3ff;
}

.cyber-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #00f3ff;
    cursor: pointer;
    box-shadow: 0 0 10px #00f3ff;
    border: none;
}

.progress-container {
    position: relative;
    width: 100%;
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 6px;
    background: linear-gradient(90deg, #00f3ff, #00ff9d);
    border-radius: 3px;
    width: 0%;
    pointer-events: none;
}

/* 音量控制 */
.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 150px;
}

.time-display {
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    color: #8be9fd;
    min-width: 120px;
    text-align: center;
}

/* 侧边栏 */
.sidebar {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 300px;
}

.sidebar-section {
    background: rgba(10, 15, 35, 0.85);
    border: 1px solid #00f3ff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
    backdrop-filter: blur(5px);
}

.section-header {
    display: flex;
    align-items: center;
    padding: 15px;
    background: rgba(0, 20, 40, 0.9);
    border-bottom: 1px solid #00f3ff;
    gap: 10px;
}

.section-icon {
    font-size: 18px;
    color: #00f3ff;
}

.sidebar-section h3 {
    font-size: 18px;
    color: #00f3ff;
    font-weight: 600;
}

.sidebar-section h4 {
    font-size: 16px;
    color: #8be9fd;
    font-weight: 600;
}

/* 源按钮 */
.source-buttons {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 播放列表 */
.playlist-container {
    padding: 0 20px 20px;
}

.playlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.playlist {
    max-height: 300px;
    overflow-y: auto;
}

.playlist::-webkit-scrollbar {
    width: 6px;
}

.playlist::-webkit-scrollbar-track {
    background: rgba(0, 40, 80, 0.5);
    border-radius: 3px;
}

.playlist::-webkit-scrollbar-thumb {
    background: #00f3ff;
    border-radius: 3px;
}

.playlist-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(0, 243, 255, 0.2);
    cursor: pointer;
    transition: all 0.2s;
}

.playlist-item:hover {
    background: rgba(0, 100, 200, 0.2);
}

.playlist-item.active {
    background: rgba(0, 150, 255, 0.3);
    border-left: 3px solid #00f3ff;
}

.playlist-item-icon {
    margin-right: 12px;
    color: #00f3ff;
    font-size: 14px;
}

.playlist-item-info {
    flex: 1;
    overflow: hidden;
}

.playlist-item-title {
    font-size: 14px;
    color: #8be9fd;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
}

.playlist-item-duration {
    font-size: 12px;
    color: #5fa8ff;
}

/* 样例视频 */
.sample-videos {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sample-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: rgba(0, 40, 80, 0.5);
    border: 1px solid rgba(0, 243, 255, 0.3);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    gap: 15px;
}

.sample-item:hover {
    background: rgba(0, 100, 200, 0.3);
    border-color: #00f3ff;
    transform: translateX(5px);
}

.sample-thumb {
    width: 50px;
    height: 50px;
    background: rgba(0, 20, 40, 0.8);
    border: 1px solid #00f3ff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #00f3ff;
}

.sample-info {
    flex: 1;
}

.sample-title {
    font-size: 14px;
    color: #8be9fd;
    margin-bottom: 5px;
    font-weight: 600;
}

.sample-desc {
    font-size: 12px;
    color: #5fa8ff;
}

/* 系统信息 */
.system-info {
    background: rgba(10, 15, 35, 0.85);
    border: 1px solid #00f3ff;
    border-radius: 8px;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 243, 255, 0.2);
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-size: 14px;
    color: #8be9fd;
}

.info-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    color: #00f3ff;
}

/* 设置面板 */
.settings-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    background: rgba(10, 15, 35, 0.95);
    border: 2px solid #00f3ff;
    border-radius: 8px;
    box-shadow: 0 0 40px rgba(0, 243, 255, 0.5);
    z-index: 100;
    display: none;
    backdrop-filter: blur(10px);
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(0, 20, 40, 0.9);
    border-bottom: 1px solid #00f3ff;
}

.settings-header h3 {
    font-size: 20px;
    color: #00f3ff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.settings-content {
    padding: 20px;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.setting-item label {
    font-size: 16px;
    color: #8be9fd;
}

.cyber-select {
    background: rgba(0, 40, 80, 0.8);
    border: 1px solid #00f3ff;
    color: #00f3ff;
    padding: 8px 12px;
    border-radius: 4px;
    width: 150px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 40, 80, 0.8);
    border: 1px solid #00f3ff;
    border-radius: 24px;
    transition: .4s;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 3px;
    background-color: #00f3ff;
    border-radius: 50%;
    transition: .4s;
}

input:checked + .toggle-slider {
    background-color: rgba(0, 150, 255, 0.8);
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .container {
        flex-direction: column;
    }
    
    .sidebar {
        min-width: 100%;
    }
    
    .playlist {
        max-height: 200px;
    }
}